package cn.com.niit.online.music.service.impl;

@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment> implements CommentService {
    /** 省略其他代码...... */

    @Autowired
    private CommentMapper commentMapper;

    /**
     * @Description: 根据歌单id获取评论列表
     * @param: songListId 歌单id
     * @return: com.example.online.music.common.R
     **/
    @Override
    public R getCommentListBySongListId(Integer songListId) {
        return R.success("查询成功", commentMapper.selectCommentListBySongListId(songListId));
    }

    /** 省略其他代码...... */
}
